<!-- 汇总表格 -->

<template>
  <WebTable doubleHead full>
    <RowTree
      :label="`${CORE.MAP.ASSET}分类`"
      bind="assetTypeId"
      :dict="$root.device_category_treeDict"
      :minWidth="100"
    />

    <el-table-column label="突发事件" align="center">
      <RowNum :label="`${CORE.MAP.ALARM}次数`" bind="alarmCount" />
      <RowNum label="维修次数" bind="repairCount" />
    </el-table-column>

    <el-table-column label="常规事件" align="center">
      <RowNum label="巡检次数" bind="inspectionCount" />
      <RowNum label="保养次数" bind="maintenanceCount" />
    </el-table-column>

    <el-table-column label="运行状态" align="center">
      <RowNum label="在线率" bind="online" suffix="%" />
      <RowNum label="离线率" bind="off" suffix="%" />
    </el-table-column>

    <el-table-column label="全生命周期" align="center">
      <RowNum label="在用" bind="use" suffix="%" />
      <RowNum label="领用" bind="receive" suffix="%" />
      <RowNum label="归还" bind="borrow" suffix="%" />
      <RowNum label="报修" bind="fault" suffix="%" />
      <RowNum label="报废" bind="idle" suffix="%" />
      <RowNum label="调拨" bind="disposal" suffix="%" />
    </el-table-column>
  </WebTable>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'AllTable',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [CORE.mixWeb()],
}
</script>
